﻿using CMS.BaseEntity;
using CMS.DataAccess;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;

namespace CMS.BusinessLogic
{
    public class CategoryLogic
    {
        CategoryAccess cAccess = new CategoryAccess();
        public DataTable GetListCategory()
        {
            return cAccess.GetListCategory();
        }

        public bool IsInsertedCategory(Category category)
        {
            return cAccess.IsInsertedCategory(category);
        }

        public bool IsUpdatedCategory(Category category)
        {
            return cAccess.IsUpdatedCategory(category);
        }

        public DataTable GetCategoryById(Category category)
        {
            return cAccess.GetCategoryById(category);
        }

        public bool IsDeletedCategory(Category category)
        {
            return cAccess.IsDeletedCategory(category);
        }

        public DataTable GetListCateBySection(Category category)
        {
            return cAccess.GetListCateBySection(category);
        }
    }
}